package com.kotasoft.training.roogwteclipselink.shared.domain;

import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.tostring.RooToString;
import org.springframework.roo.addon.entity.RooEntity;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Min;
import javax.validation.constraints.Max;

@RooJavaBean
@RooToString
@RooEntity
public class Direccion {

    @NotNull
    private String tipoVia;

    @NotNull
    private String nombreVia;

    @NotNull
    private Integer numero;

    @NotNull
    private String ciudad;

    @NotNull
    @Min(0L)
    @Max(99999L)
    private Integer cp;

    @NotNull
    private String provincia;

    @NotNull
    private String pais;
}
